package com.geeguo.ebuilder.operation.business.system.role.model;

import com.geeguo.ebuilder.core.common.model.converter.DateLongMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = DateLongMapper.class)
public interface RoleConverter {

    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);

    RoleVO convert2VO(RoleEntity entity);
    RoleEntity convert2Entity(RoleVO vo);
    RoleEntity convert2Entity(RoleCreateDTO dto);
    RoleEntity convert2Entity(RoleUpdateDTO dto);
}